import { Injectable, NestMiddleware } from '@nestjs/common';
@Injectable()
export class CommonMiddleware implements NestMiddleware {
  async use(req: any, res: any, next: () => void) {
    res.status(200);
    res.header('Keep-Alive', 'timeout=60,max=1000');
    res.header('Connection', 'keep-alive');
    next();
  }
}
